package org.lex.io;

import java.io.OutputStream;

public final class NullOutputStream extends OutputStream {
	private static final NullOutputStream instance = new NullOutputStream();

	public NullOutputStream() {
		super();
	}

	public static OutputStream getInstance() {
		return instance;
	}

	public void close() {
	}

	public void flush() {
	}

	public void write(byte[] b, int off, int len) {
	}

	public void write(byte[] b) {
	}

	public void write(int b) {
	}

	@Override
	public String toString() {
		return "NullOutputStream";
	}
}
